

import {request} from "../../utils/request"
import type {loginResponseType,userFindType,userFindAllType} from "../../modal/user";
//用户登录
export let Login= (params:object)=>{
	return request.postRequest<loginResponseType>("SchoolSys/user/login",params)
}
//用户登出
export let LoginOut= (params:object)=>{
	return request.postRequest<undefined>("SchoolSys/user/logout",params)
}
//添加用户
export let adduser= (params:object)=>{
	return request.postRequest<undefined>("SchoolSys/user/add",params)
}
//修改用户
export let updateuser= (params:object)=>{
	return request.postRequest<undefined>("SchoolSys/user/update",params)
}
//删除用户
export let delateuser= (params:object)=>{
	return request.postRequest<undefined>("SchoolSys/user/del",params)
}

//用户查询
//SchoolSys/menu/findByRole
export let UserFind= (params:object)=>{
	return request.postRequest<userFindType>("SchoolSys/user/find",params)
}
//查询所有用户
export let UserFindAll= ()=>{
	return request.postRequest<userFindAllType>("SchoolSys/user/findAll")
}
